package com.example.fushuang.balabala;

import android.app.Application;
import android.support.v7.app.AppCompatDelegate;

import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.EventBusBuilder;

/**
 * Created by admin on 2016/10/13.
 */

/**
 * 全局初始化部分
 */
public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        {
            AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
        }

//        1.默认初始化方式
//        EventBus.getDefault();

//        2.自定义初始化方式
        EventBusBuilder builder = EventBus.builder();
        builder.installDefaultEventBus();


    }
}
